package cn.wolfcode.service;

import cn.wolfcode.domain.StrategyCatalog;
import cn.wolfcode.query.StrategyCatalogQuery;
import cn.wolfcode.vo.CatalogVO;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 攻略服务接口
 */
public interface IStrategyCatalogService {
    void save(StrategyCatalog strategyCatalog);
    void update(StrategyCatalog strategyCatalog);
    void delete(String id);
    StrategyCatalog get(String id);
    List<StrategyCatalog> findAll();


    Page<StrategyCatalog> query(StrategyCatalogQuery qo);

    /**
     * 分类下拉框
     * @return
     */
    List<CatalogVO> groupList();

    /**
     * 查询指定目的地下的分类
     * @param id
     * @return
     */
    List<StrategyCatalog> queryCatalogByDestId(String id);
}
